// excel.h: interface for the Cexcel class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EXCEL_H__D5285AA8_6B7D_4B2D_B6F5_C0242C577783__INCLUDED_)
#define AFX_EXCEL_H__D5285AA8_6B7D_4B2D_B6F5_C0242C577783__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Cexcel  
{
public:

	CString var_to_string(_variant_t var);
	int readexcel(CString path);
	int openrecord();
	int initado();
	int Open(CString path);
	Cexcel();
	virtual ~Cexcel();
	_ConnectionPtr connection;
	_CommandPtr    command;
	_RecordsetPtr  record;
public:
	BOOL IsNum(CString str);
	int readtostu(CString path,CString dbpath);
//	int readtostu();
	int readteacher(CString path,CString pathdb);
	CStringArray namearray;
	CStringArray scorearray;
};

#endif // !defined(AFX_EXCEL_H__D5285AA8_6B7D_4B2D_B6F5_C0242C577783__INCLUDED_)
